package com.hy.erp.inventory.pojo;

import javax.persistence.Column ;

import javax.persistence.Entity ;
import javax.persistence.Table ;

import org.hibernate.annotations.Index ;
/*import org.jboss.seam.ScopeType ;
import org.jboss.seam.annotations.Name ;
import org.jboss.seam.annotations.Scope ;
*/
import com.hy.erp.inventory.dao.interfaces.IRateTypeDao;
import com.hy.erp.inventory.pojo.interfaces.IRateType;
/*import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.api.annotation.DaoA;
import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.entity.AbstractPersistentEntity;
*/import com.hy.mydesktop.shared.persistence.domain.gxt.MyBaseModel;
/**
 * 
 * <ul>
 * <li>开发作者：李冰</li>
 * <li>设计日期：2010-11-21；时间：上午08:58:50</li>
 * <li>类型名称：RateType</li>
 * <li>设计目的：费用类型</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */
/*@Entity
@Name("rateType")
@Scope(ScopeType.SESSION)
@Table(name="rateType")
@DaoA(IRateTypeDao.class)*/
//public class RateType extends AbstractPersistentEntity implements IRateType
public class RateType extends MyBaseModel //implements IPositonType
{
	@ Column ( name = "name" , length = 50 )
	@ Index ( name = "nameIndex" )
	public String getName ( )
	{
		return this.get(IRateType.NAME) ;
	}

	public void setName (
							String name )
	{
		super.set (IRateType.NAME , name );
	}
	@ Column ( name = "description" , length = 200 )
	@ Index ( name = "descriptionIndex" )
	public String getDescription ( )
	{
		return this.get(IRateType.DESCRIPTION) ;
	}

	public void setDescription (
									String description )
	{
		super.set (IRateType.DESCRIPTION , description );
	}
}
